<div class="content_head">
	<?php echo $title; ?>
</div>

       <div class="content_ct">
       		<div class="content_ct_search">
				<table class="content_ct_search_tbl"  width="100%">
					<form method="POST" action="<?php echo base_url() ?>back_end/user/search">    
					<tr>
						<td width="15%">
							<span>Tên đăng nhập - thành viên :</span>
						</td>
						<td width="10%">
							<input  class="content_ct_search_tbltxt" name="nameSearch" value="<?php if(isset($_SESSION['like_user'])){ echo $_SESSION['like_user']['user_name']; } ?>" type="text" />
						</td>
						<td width="35%"></td>
						<td width="40%"></td>
					</tr>
					
					<tr>
						<td></td>
						<td>
							<input id="input_checkbox_2" style="cursor:pointer;" type="submit" name="formSearch" value="Tìm kiếm" />
							<input style="cursor:pointer;" type="reset" value="Reset" />
						</td>
						<td></td>
						<td></td>
					</tr>
					</form>
				</table>
		   </div>
			
		   <div class="content_ct_show">
				<div class="content_ct_show_abs">
					<?php echo $this->session->flashdata('msview'); ?>
				</div>
				
				<div class="content_ct_show_paging">
					<span style="color: #888;">Tổng số:</span>
					<span style="color: #444;">(<?php echo $this->pagination->total_rows; ?>)</span>
					<?php echo $this->pagination->create_links(); ?>
				</div>
				
				<form id="frmForm" method="POST" action="<?php echo base_url()?>back_end/user/delete" >
				<div class="content_ct_show_head">
					<input class="delete_input_head" type="submit" value="Xóa" />
					<a class="add_new" href="<?php echo base_url()?>back_end/admins/add">Thêm mới</a>
					<span style="padding-left: 5px; color: #FF9933;" class="count_check"></span>
				</div>
				
				<div class="content_ct_show_ct">
              	  <table class="content_ct_show_ct_tbl" width="100%">
                		<tr class="content_ct_show_ct_tbl_top">
		                    <td width="5%">
		                    	<input type="checkbox" class="input_checkall" />
		                    </td>
		                    <td width="5%">
                            	<a class="link_change" href="<?php echo base_url() ?>back_end/user/sort/id/<?php echo $sort; ?>">ID</a>
		                    </td>
		                     <td width="20%">
                                <a class="link_change" href="<?php echo base_url() ?>back_end/user/sort/user_name/<?php echo $sort; ?>">Tên đăng nhập</a>
		                    </td>
		                    <td width="20%">
                                <a class="link_change" href="<?php echo base_url() ?>back_end/user/sort/full_name/<?php echo $sort; ?>">Tên người dùng</a>
		                    </td>
		                    <td width="15%">
                                <a class="link_change" href="<?php echo base_url() ?>back_end/user/sort/email/<?php echo $sort; ?>">Email</a>
		                    </td>
		                     <td width="10%">
			                	<a class="link_change">Số điện thoại</a>
		                    </td>
		                    <td width="15%">
		                    	<a class="link_change" href="<?php echo base_url() ?>back_end/user/sort/date/<?php echo $sort; ?>">Ngày sinh</a>
		                    </td>
		                    <td width="10%">
		                    	<a class="link_change">Tác vụ</a>
		                    </td>
	              		</tr>
	                
		                <?php
		                	$count = 1; 
		                	if (count($admin_user) > 0) {
		                		foreach ($admin_user as $value) {
		                		$count += 1;	 
	                	?> 
		                <tr class="<?php if ($count%2) { echo 'content_ct_show_ct_tbl_bt_1'; } else { echo 'content_ct_show_ct_tbl_bt_2'; }  ?>">
		                    <td>
		                    	<input class="input_checkbox" type="checkbox"  value="<?php echo $value['id']; ?>" name="value_id[]"/>
		                    </td>
		                    
		                    <td>
		                    	<?php echo $value['id']; ?>
		                    </td>
		                    
	                        <td>
		                    	<a class="view_lk" style="color: #1155CC;" title="Click để xem chi tiết" href="<?php echo base_url()?>back_end/user/view/<?php echo $value['id']; ?>"><?php echo $value['user_name'];?></a>
	                        </td>
		                    
		                    <td>
		                    	<?php echo $value['full_name']; ?>
		                    </td>
		                   
		                    <td>
		                    	<?php echo $value['email']; ?>
		                    </td>
		                    
		                    <td>
		                    	<?php echo $value['phone']; ?>
		                    </td>
		                    
		                    <td>
		                    	<?php echo $value['date']; ?>
		                    </td>
		                    
		                    <td>
		                    	<?php if($value['status'] == 1) { ?>
		                    		<a class="tag_action" href="<?php echo base_url()?>back_end/user/active/<?php echo $table.'-'.$value['id'].'-'.'0'.'-'.'user'; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check2.png" title="Trạng thái" alt="icon check" /></a>
		                    	<?php } else { ?>
		                 			<a class="tag_action" href="<?php echo base_url()?>back_end/user/active/<?php echo $table.'-'.$value['id'].'-'.'1'.'-'.'user'; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check.png" title="Trạng thái" alt="icon check" /></a>
		                    	<?php }?>
                                    <a class="tag_action" href="<?php echo base_url()?>back_end/user/deleteId/<?php echo $value['id']; ?>"><img src="<?php echo base_url()?>images/back_end/icon/delete_png.png" title="Xóa"  alt="icon" /></a>
		                    </td>
	                    </tr>
                   <?php }
					 	} else {
					?>
						<tr>
							<td colspan="8"><i style="color: #000;">Không có kết quả nào được tìm thấy</i></td>
						</tr> 
					 <?php
					 	} 
					 ?>
                </table>
            </div>
                
                <div class="content_ct_show_paging">
				<?php echo $this->pagination->create_links(); ?>
			</div>		
                </form>
            </div>
            <!-- end content_ct_show -->
       </div>     
            
           